package com.etone.smartAudit.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

/**
 * <p>
 * 项目文件表 项目文件表
 * </p>
 *
 * @author jiayen
 * @since 2021-05-08
 */


@AllArgsConstructor
@NoArgsConstructor
@Builder
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("d_project_file")
@ApiModel(value = "ProjectFile对象", description = "项目文件表 项目文件表")
public class ProjectFile implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键id 主键id")
    @TableId(value = "intId", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "文件名称")
    @TableField("vcFileName")
    private String fileName;

    @ApiModelProperty(value = "文件类型 0-文件夹，1-文件")
    @TableField("intType")
    private Integer type;

    @ApiModelProperty(value = "文件大小")
    @TableField("douSize")
    private Long size;

    @ApiModelProperty(value = "文件路径 文件所在的位置")
    @TableField("vcPath")
    private String path;

    @ApiModelProperty(value = "文件全路径")
    @TableField("vcAllPath")
    private String allPath;

    @ApiModelProperty(value = "文件扩展名 文件后缀")
    @TableField("vcExtName")
    private String extName;

    @ApiModelProperty(value = "文件哈希值")
    @TableField("vcHash")
    private String hash;

    @ApiModelProperty(value = "文件的md5值")
    @TableField("vcFileMd5")
    private String fileMd5;

    @ApiModelProperty(value = "所属项目id 冗余记录给文件所属于的顶级项目（便于后续统计项目下的文件）")
    @TableField("intProjectId")
    private Integer projectId;

    @ApiModelProperty(value = "是否是个人文件 0-非私人文件，1-私人文件")
    @TableField("bIsPrivate")
    private Integer isPrivate;

    @ApiModelProperty(value = "父级id 0-为顶级文件,其他为父级id")
    @TableField("intPid")
    private Integer pid;

    @ApiModelProperty(value = "是否删除（逻辑删除） 0-正常，1-已删除")
    @TableField("intIsDelete")
    private Integer isDelete;

    @ApiModelProperty(value = "创建人Id")
    @TableField("created_by")
    private Integer createdBy;

    @ApiModelProperty(value = "创建时间")
    @TableField("created_time")
    private Date createdTime;

    @ApiModelProperty(value = "创建人名称")
    @TableField("created_name")
    private String createName;

    @ApiModelProperty(value = "更新时间")
    @TableField("updated_time")
    private Date updatedTime;


    @ApiModelProperty(value = "更新人id")
    @TableField("updated_by")
    private Integer updatedBy;

    @ApiModelProperty(value = "更新人名称")
    @TableField("updated_name")
    private String updatedName;

    @ApiModelProperty(value = "版本id")
    @TableField("vcVersionId")
    private String versionId;

    @ApiModelProperty(value = "文件状态")
    @TableField("vcStatus")
    private String status;

    @TableField("vcOfficeKey")
    @ApiModelProperty("文件onlyoffice打开key")
    private String officeKey;

    @TableField("intFileType")
    @ApiModelProperty("文件或者文件夹类型，0-普通文件，1-系统文件（系统文件不能修改）")
    private Integer fileType;
}
